﻿CREATE TABLE [dbo].[tblNote] (
    [NoteID]   INT          IDENTITY (1, 1) NOT NULL,
    [Agent]    VARCHAR (40) NOT NULL,
    [NoteDate] DATETIME     NOT NULL,
    [NoteText] TEXT         NOT NULL
);
GO
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines a single note on an order.  Orders can have multiple notes.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblNote';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The primary key.  The note id uniquely identifies each note in the system.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblNote',
	@level2type = N'COLUMN', @level2name = N'NoteID';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Name of the agent who entered the note into the system', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblNote',
	@level2type = N'COLUMN', @level2name = N'Agent';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Date the note was entered', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblNote',
	@level2type = N'COLUMN', @level2name = N'NoteDate';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The body of the note', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblNote',
	@level2type = N'COLUMN', @level2name = N'NoteText';

